// https://nuxt.com/docs/api/configuration/nuxt-config
import { resolve } from 'path'
export default defineNuxtConfig({
  compatibilityDate: '2024-11-01',
  app:{
    head: {
      meta: [
        { charset: 'utf-8' },
        { name: 'viewport', content: 'width=device-width, initial-scale=1' },
        { hid: 'viewport', name: 'viewport', content:"width=1350,  user-scalable=no,viewport-fit=cover"},
        { hid: 'description', name: 'description', content: 'author:cash' },
        { hid: 'keywords', name: 'keywords', content: 'Vue3，Nuxt3，cash' },
        { name: 'format-detection', content: 'telephone=no' }
      ],
      link:[
       {
        rel:'icon',
        type:'image/x-icon',
        href:'/favicon.ico'
       }
      ]
    },
  },
  css: [
    '@/assets/css/reset.scss',
    // 公共class
    '@/assets/css/common.scss'
  ],
  modules:[
    '@pinia/nuxt', 
    '@nuxtjs/i18n'
  ],
  devtools: { 
    enabled: true
  },
  ssr: false, // 将 ssr 放在顶层配置中
  devServer: {
    host: 'localhost', // 修正 localhost 为字符串
    port: 8181
  }
})